home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 March / Game.EXE_03_2002.iso / Shareware / Fallout Quest / FQ install.exe / #setuppath# / files / nextscrolls.js < prev    next >
Encoding:
Text File  |  2000-10-29  |  1.0 KB  |  45 lines

  1. var scrolj=0;
  2. var hms=125; //╤ΩεΩα ±Ω≡εδΦ≥ⁿ!!! ╚τ∞σφσφΦσ Γ√τεΓσ≥ Φτ∞σφσφΦσ ±Ωε≡ε±≥Φ ±Ω≡εδδΦφπα.
  3. var scrsetspd=10; //┬σδΦ≈Φφα ±∞σ∙σφΦ  ∩≡Φ ∩≡εΩ≡≤≥Ωσ
  4. var scrTout=1; //╫α±≥ε≥α Φτ∞σφσφΦ  ∩≡Φ ∩≡εΩ≡≤≥Ωσ
  5. var tScrl;
  6. var curPos=0;
  7.  
  8. function scrolldone(){ //╟αΓσ≡°σφΦσ ±Ω≡εδδΦφπα
  9. window.clearInterval(tScrl);
  10. }
  11.  
  12. function scrol(){ //╘≤φΩ÷Φ  ∩≡εΩ≡≤≥ΩΦ
  13. curPos=parent.nextplace.next.document.body.scrollTop+scrspd;
  14. parent.nextplace.next.window.scroll(0, curPos);
  15. }
  16.  
  17. function scrolInt(){ //╟αΣαφΦσ Φφ≥σ≡Γαδα ∩≡εΩ≡≤≥ΩΦ
  18. tScrl=window.setInterval("scrol()", scrTout, "JavaScript")
  19. }
  20.  
  21. function scrollup(){  //╩≡≤≥Φ≥ⁿ ΓΓσ≡⌡
  22. if(slowscrol=1){
  23. scrspd=-scrsetspd;
  24. scrolInt();
  25. }}
  26.  
  27. function scrolldown(){ //╩≡≤≥Φ≥ⁿ ΓφΦτ
  28. if(slowscrol=1){
  29. scrspd=scrsetspd;
  30. scrolInt();
  31. }}
  32.  
  33. function scrolljup(){ //╩≡≤≥Φ≥ⁿ ≡στΩε ΓΓσ≡⌡
  34. scrolldone();
  35. if (scrolj>0){
  36. scrolj=scrolj-hms;
  37. }
  38. parent.nextplace.next.scroll(0,scrolj);
  39. }
  40.  
  41. function scrolljdown(){ //╩≡≤≥Φ≥ⁿ ≡στΩε ΓφΦτ
  42. scrolldone();
  43. scrolj=scrolj+hms;
  44. parent.nextplace.next.scroll(0,scrolj);
  45. }